import 'package:flutter/material.dart';
import 'package:flutter_douban/config/app_colors.dart';

class CommitHeaderView extends StatelessWidget {
  const CommitHeaderView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(bottom: 5),
      width: MediaQuery.of(context).size.width,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(
              '笔记评论',
              style: TextStyle(
                  fontWeight: FontWeight.bold,
                  fontSize: 18,
                  color: Colors.black),
            ),
            SizedBox(height: 20,),
            Container(
              alignment: Alignment.centerLeft,
              height: 34,
              decoration: BoxDecoration(
                color: AppColors.line,
                borderRadius: BorderRadius.circular(20),
              ),
              child: Row(
                children: [
                  Image.asset('assets/images/common/sticker_face.png',width: 40,height: 40,),
                  Text(
                    '说点什么,让TA也认识爱做饭的你',
                    style: TextStyle(fontSize: 12, color: AppColors.qianTextColor),
                  )
                ],
              ),
            )
          ],
        ),
    );
  }
}

